﻿<?php
error_reporting(0);
define('IN_QY',true);
session_start();
require("include/common.inc.php");
define('SCRIPT','ad_list');
if(!$_COOKIE['userid']){
      echo "<script type='text/javascript'>location.href='mlogin.php';</script>";
      exit;
}
$sqlu = "select * from tbl_user where id=".$_COOKIE['userid'];
$queryu=mysql_query($sqlu);
$rowu=mysql_fetch_array($queryu);
$jifen = $rowu['jifen'];

$xyf = $rowu['xyf'];
$vip = $rowu['vip'];
$touxiang = $rowu['username'];
	//获取保证金求和金额
$sqlbzj = "select sum(baozj) sum from tbl_spp where baozjzt=1 AND tuizt=0 AND userid=".$_COOKIE['userid'];
$querybzj=mysql_query($sqlbzj);
$rowbzj=mysql_fetch_assoc($querybzj);
$bzjh = $rowbzj['sum'];
//扫码红包

	$sqlt = "SELECT * from tbl_tenred  where uid='".$_COOKIE['userid']."' ";
    $queryt=mysql_query($sqlt);
    $rowt=mysql_fetch_array($queryt);
if( $rowt){
$saohb=	$rowt['money'];	
}else{
$saohb=	0.00;		
}


//返现余额
//$sqlfx = "select * from tbl_refund where uid=".$_COOKIE['userid'];
$sqlfx = "select * from tbl_user where id=".$_COOKIE['userid'];
$queryfx=mysql_query($sqlfx);
$rowfx=mysql_fetch_assoc($queryfx);
if($rowfx['cash_back']==""){
	
$fanxian =0;	
}else{
$fanxian = $rowfx['cash_back'];		
}
$yuee = $rowu['yuee'] + $fanxian + $saohb;


	//获取押金求和金额
$sqlyj = "select sum(yajin) sum from tbl_lbb where yajintxzt=0  AND userid=".$_COOKIE['userid'];
$queryyj=mysql_query($sqlyj);
$rowyj=mysql_fetch_assoc($queryyj);
$yjtxh =round($rowyj['sum'],3);
	//获取支付金额
$sqluu = "select * from tbl_yuee where zfzt=1 AND userid=".$_COOKIE['userid'];
$queryuu=mysql_query($sqluu);
$rowuu=mysql_fetch_array($queryuu);
$czje=$rowuu['totalp'];
$czzfid=$rowuu['shibiema'];
$czzfzt=$rowuu['zfzt'];
//用户数据查询开始
$sqlm = "select * from tbl_tutu where userid=".$_COOKIE['userid'];
$querym=mysql_query($sqlm);
$rowm=mysql_fetch_array($querym);
$gxqm=$rowm['content'];
if($_GET['act']=='add'){
	 
	$sql = "insert into tbl_yuee values (0,'".$_POST['title']."','".$_POST['shibiema']."','".$_POST['totalp']."','".$_COOKIE['userid']."','".$_COOKIE['username']."','".date('Y-m-d H:i:s')."','".$_POST['zfzt']."','".$_COOKIE['userid']."')";

	mysql_query($sql);
	echo "<script>window.location.href='yuezf.php?fid=".$_POST["shibiema"]."';</script>";
}
//更改删除状态
if($_GET["act"]=="repass")
{
	 $sql="update tbl_yuee set zfzt = '2'  where shibiema=".$_GET['id'];
	 mysql_query($sql);
	 echo "<script type='text/javascript'>alert('已删除');location.href= 'yue.php';</script>";
	 exit;
}
//提现申请
if($_GET["act"]=="tixian")
{
    $pwd=$_POST['password'];
    $sql_user="select * from tbl_user where id=".$_COOKIE['userid'];
    $query_user=mysql_query($sql_user);
    $row_user=mysql_fetch_array($query_user);
    if($row_user['userpwd']!=$pwd){
      echo "<script type='text/javascript'>alert('账号密码不正确');history.go(-1);</script>";
      exit;
    }
	    if($row_user['yuee']<$_POST['jine']){
      echo "<script type='text/javascript'>alert('正确输入提现金额');history.go(-1);</script>";
      exit;
    }
//
 if(preg_match('/^[\x{4e00}-\x{9fa5}]+$/u', $_POST['txrxm'])>0){
	 
	 $_POST['txrxm']=$_POST['txrxm']; 

 }else {
      echo "<script type='text/javascript'>alert('请正确输入真实姓名');history.go(-1);</script>";  
	   exit;  
 }
	
	
	
	if($rowu['yeezt']==1){
      echo "<script type='text/javascript'>alert('提现申请已提交，工作日预计2小时内到账，节假日稍有延迟，请耐心等待！');history.go(-1);</script>";
      exit;
}

	 $sql="update tbl_user set yeezt = '1' , qq='".$_POST['jine']."',anums='".$_POST['txrxm']."' , yueezfb='".$_POST['zfb']."' where id=".$_COOKIE['userid'];
	 mysql_query($sql);
	 

  //微信提现模板提醒
 $time=date('Y-m-d H:i:s');
 $ac = file_get_contents('https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wxd6671ed64906b4b4&secret=04b2aa5188bde40a5adecb5fbaea226a');
 $wxt = json_decode($ac,true);
 $url = 'https://api.weixin.qq.com/cgi-bin/message/template/send?access_token='.$wxt['access_token'];//access_token改成你的有效值
 
 $data = [
  'touser' => 'o4s7MwwfqbUuso9ZmQs84-sZMcxo',
 'template_id' => 'yUSKJtlZBc1q7pdnuhyUbJaMt1j2QMbNACV6qrmSOk8',
 'url' => 'http://www.goodshare.com.cn/',
 'data' => [
  'first' => [
      'value' => '有新的提现申请啦',
      'color' => '#173177',
    ],
    'keyword1' => [
      'value' => $_COOKIE['shuyu'],
      'color' => '#173177',
    ],
    'keyword2' => [
       'value' => $_POST['jine'].'元',
      'color' => '#173177',
    ],
    'keyword3' => [
       'value' => $time,
       'color' => '#173177',
    ],
     'remark' => [
      'value' => '余额提现',
       'color' => '#173177',
    ]
 ]
 ];
 $access_token = $wxt['access_token'];
 $params = json_encode($data,JSON_UNESCAPED_UNICODE);
 $start_time = microtime(true);
 for ($i = 0; $i < 1; $i++) {
 $fp = fsockopen('api.weixin.qq.com', 80, $error, $errstr, 1);
 $http = "POST /cgi-bin/message/template/send?access_token={$access_token} HTTP/1.1\r\nHost: api.weixin.qq.com\r\nContent-type: application/x-www-form-urlencoded\r\nContent-Length: " . strlen($params) . "\r\nConnection:close\r\n\r\n$params\r\n\r\n";
 fwrite($fp, $http);
 fclose($fp);
 }
 //微信提现模板提醒 
 
	 mysql_close();
	 echo "<script type='text/javascript'>alert('提现申请已提交，工作日预计2小时内到账，节假日稍有延迟，请耐心等待！');location.href= 'yue.php';</script>";
	 exit;
}
//
//提现申请
if($_GET["act"]=="ftixian")
{
    $pwd=$_POST['password'];
    $sql_fxt="select * from tbl_refund where uid=".$_COOKIE['userid'];
    $query_fxt=mysql_query($sql_fxt);
    $row_fxt=mysql_fetch_array($query_fxt);
	
	
	 if(preg_match('/^[\x{4e00}-\x{9fa5}]+$/u', $_POST['fxtxrxm'])>0){
	 
	   $_POST['fxtxrxm']=$_POST['fxtxrxm']; 

 }else {
      echo "<script type='text/javascript'>alert('清正确输入真实姓名');history.go(-1);</script>";  
	     exit;
 }
 
	if($row_fxt['state']==1){
      echo "<script type='text/javascript'>alert('提现申请已提交，工作日预计2小时内到账，节假日稍有延迟，请耐心等待！');history.go(-1);</script>";
      exit;
      }
  
	 $sql="update tbl_refund set state = '1' , funded='".$_POST['fxjine']."',fundman='".$_POST['fxtxrxm']."' , fundcount='".$_POST['fxzfb']."' where uid=".$_COOKIE['userid'];
	 mysql_query($sql);
	 
	  //微信提现模板提醒
 $time=date('Y-m-d H:i:s');
 $ac = file_get_contents('https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wxd6671ed64906b4b4&secret=04b2aa5188bde40a5adecb5fbaea226a');
 $wxt = json_decode($ac,true);
 $url = 'https://api.weixin.qq.com/cgi-bin/message/template/send?access_token='.$wxt['access_token'];//access_token改成你的有效值
 
 $data = [
  'touser' => 'o4s7MwwfqbUuso9ZmQs84-sZMcxo',
 'template_id' => 'yUSKJtlZBc1q7pdnuhyUbJaMt1j2QMbNACV6qrmSOk8',
 'url' => 'http://www.goodshare.com.cn/',
 'data' => [
  'first' => [
      'value' => '有新的提现申请啦',
      'color' => '#173177',
    ],
    'keyword1' => [
      'value' => $_COOKIE['shuyu'],
      'color' => '#173177',
    ],
    'keyword2' => [
       'value' => $_POST['jine'].'元',
      'color' => '#173177',
    ],
    'keyword3' => [
       'value' => $time,
       'color' => '#173177',
    ],
     'remark' => [
      'value' => '返现提现',
       'color' => '#173177',
    ]
 ]
 ];
 $access_token = $wxt['access_token'];
 $params = json_encode($data,JSON_UNESCAPED_UNICODE);
 $start_time = microtime(true);
 for ($i = 0; $i < 1; $i++) {
 $fp = fsockopen('api.weixin.qq.com', 80, $error, $errstr, 1);
 $http = "POST /cgi-bin/message/template/send?access_token={$access_token} HTTP/1.1\r\nHost: api.weixin.qq.com\r\nContent-type: application/x-www-form-urlencoded\r\nContent-Length: " . strlen($params) . "\r\nConnection:close\r\n\r\n$params\r\n\r\n";
 fwrite($fp, $http);
 fclose($fp);
 }
 //微信提现模板提醒  
 
	 echo "<script type='text/javascript'>alert('提现申请已提交，工作日预计2小时内到账，节假日稍有延迟，请耐心等待！');location.href= 'yue.php';</script>";
	 exit;
}
?>
<?include('page.class.php');?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title><?=$_COOKIE['shuyu']?>/余额-众晒网</title>
    <link rel="stylesheet" type="text/css" href="/ui/css/Hui.css" />

    <link rel="stylesheet" type="text/css" href="wnpage/css/css.css" />
    <style type="text/css">
         #header{width:100%; height:44px; position:absolute; top:0;}
         #footer{width:100%; height:55px; position:absolute; bottom:0;}	 
        #main{width:100%; overflow: auto; position:absolute; top:44px;bottom:0px;} 
        .tiger{
        	display: flex;
        	flex-direction: column;
        	
        }
        .bcng{
        	background: -webkit-linear-gradient(left,#efb150,#f26c27); /* Safari 5.1 - 6.0 */
			background: -o-linear-gradient(right, #efb150,#f26c27); /* Opera 11.1 - 12.0 */
			background: -moz-linear-gradient(right, #efb150,#f26c27); /* Firefox 3.6 - 15 */
		    background: linear-gradient(to right, #efb150,#f26c27); /* 标准的语法 */
        }
    </style>
<script language="JavaScript" type="text/javascript">      
    function clearNoNum(obj){  
        //修复第一个字符是小数点 的情况.  
        if(obj.value !=''&& obj.value.substr(0,1) == '.'){  
            obj.value="";  
        }  
        obj.value = obj.value.replace(/^0*(0\.|[1-9])/, '$1');//解决 粘贴不生效  
        obj.value = obj.value.replace(/[^\d.]/g,"");  //清除“数字”和“.”以外的字符  
        obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的       
        obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");      
        obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d).*$/,'$1$2.$3');//只能输入两个小数       
        if(obj.value.indexOf(".")< 0 && obj.value !=""){//以上已经过滤，此处控制的是如果没有小数点，首位不能为类似于 01、02的金额  
            if(obj.value.substr(0,1) == '0' && obj.value.length == 2){  
                obj.value= obj.value.substr(1,obj.value.length);      
            }  
        }      
    }      
</script>     
</head>
<body class="H-flexbox-vertical">
    <header class="H-header H-theme-background-color-white" id="header">
        <span tapmode="" class="H-icon H-position-relative H-display-inline-block H-float-left H-vertical-middle H-theme-font-color-white H-padding-horizontal-left-5 H-z-index-100" onclick="H.closeWin();"><i class="H-iconfont H-icon-arrow-left H-font-size-18 H-theme-font-color-black  H-vertical-middle"></i></span>
        <div class="H-header-title H-center-all H-font-size-18 H-text-show-row-1 H-theme-font-color-black H-position-absolute H-width-100-percent">
            余额
        </div>
        <span tapmode="" class="H-icon H-position-relative H-display-inline-block H-float-right H-vertical-middle H-theme-font-color-white H-padding-horizontal-right-8 H-z-index-100" onclick="H.openWin('add_head','add_head.html')"></span>
    </header>
    <div id="main">
    <div class="H-border-vertical-bottom-after H-flexbox-horizontal bcng">
            <div class="H-flex-item H-text-show-row-1 H-padding-vertical-both-10 H-box-sizing-border-box H-border-horizontal-right-after tiger">
                <span class="H-font-size-14 H-theme-font-color-white H-center-all">余额合计（元）</span><br>
                <span class="H-font-size-22 H-theme-font-color-white H-center-all animated fadeInLeft"><?=$yuee?></span>
            </div>
            <div class="H-flex-item H-text-show-row-1 H-padding-vertical-both-10 H-box-sizing-border-box H-border-horizontal-right-after tiger">
                <span class="H-font-size-14 H-theme-font-color-white H-center-all">扫码红包(元)</span><br>
                <span class="H-font-size-22 H-theme-font-color-white H-center-all animated fadeInLeft"><?=$saohb?></span>
            </div>
            <div class="H-flex-item H-text-show-row-1 H-padding-vertical-both-10 H-box-sizing-border-box">
                <span class="H-font-size-14 H-theme-font-color-white H-center-all">返现余额(元)</span><br>
                <span class="H-font-size-22 H-theme-font-color-white H-center-all animated fadeInLeft"><?=$fanxian?></span>
            </div>
        </div>


       <div class="H-accordion-area">
            <div class="H-accordion-title H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active">
                <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12">余额明细</div>
                <span class="H-icon H-padding-horizontal-right-8 H-display-block"><i class="H-accordion-icon H-iconfont H-icon-arrow-down H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>
            </div>
            <div class="H-accordion-main H-padding-vertical-top-10 H-theme-background-color-white H-border-vertical-bottom-after H-display-none-important">
					<?
            $pageSize=2;
			$total="select count(*) from tbl_zhangdan  where (by2=0 or by2=4)  AND  username='".$_COOKIE['userid']."'";
		     pageft($total,$pageSize,0,1,1,5);
			$sql="select * from tbl_zhangdan where (by2=0 or by2=4)  AND username='".$_COOKIE['userid']."' ORDER by id DESC limit 15 ";
			$_id ='&';
			$query=mysql_query($sql);
           
       
			while($row=mysql_fetch_array($query))
			{
			?>
                      
      <div class="H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active">
        <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12"><?=$row['title']?></div>
        <span class="H-badge H-display-block H-margin-horizontal-right-5"><label class="H-display-inline-block H-vertical-middle H-theme-background-color5 H-theme-font-color-white H-font-size-12"><?=$row['shijian']?></label></span>
        <span class="H-icon H-padding-horizontal-right-5 H-display-block"><i class="H-iconfont H-icon-arrow-right H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>
    </div>

			      <?php } ?> 		
            </div>
			
			
			
        </div>
<!--------------------------------------------------


 <div class="H-accordion-area">
            <div class="H-accordion-title H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active">
                <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12">押金明细</div>
                <span class="H-icon H-padding-horizontal-right-8 H-display-block"><i class="H-accordion-icon H-iconfont H-icon-arrow-down H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>
            </div>
            <div class="H-accordion-main H-padding-vertical-top-10 H-theme-background-color-white H-border-vertical-bottom-after H-display-none-important">
					<?
			$sql="select * from tbl_lbb where ywyuedu=0 AND yajintxzt=0 AND userid='".$_COOKIE['userid']."' ORDER by id DESC limit 15 ";
			$_id ='&';
			$query=mysql_query($sql);
           			if(!mysql_affected_rows()){
            echo '
			    <div class="H-padding-vertical-bottom-10"></div>
				</br>
    <div class="H-channel-title H-flexbox-horizontal H-theme-background-color-white H-vertical-middle H-border-vertical-bottom-after">
        <div class="H-channel-line H-theme-background-color8 H-padding-vertical-top-15 H-padding-horizontal-left-3  H-margin-horizontal-left-10"></div>
        <div class="H-channel-text H-theme-font-color8 H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1">暂无明细</div>
    </div>
	</br></br>
			';
}     
			while($row=mysql_fetch_array($query))
			{
			?>
                      
      <div class="H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active">
        <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12"><?=$row['title']?></div>
        <span class="H-badge H-display-block H-margin-horizontal-right-5"><label class="H-display-inline-block H-vertical-middle H-theme-background-color5 H-theme-font-color-white H-font-size-12"><?=$row['yajin']?></label></span>
        <span class="H-icon H-padding-horizontal-right-5 H-display-block"><i class="H-iconfont H-icon-arrow-right H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>
    </div>

			      <?php } ?> 		
       
				
				
				
            </div>
        </div>

 <div class="H-accordion-area">
            <div class="H-accordion-title H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active">
                <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12">保证金明细</div>
                <span class="H-icon H-padding-horizontal-right-8 H-display-block"><i class="H-accordion-icon H-iconfont H-icon-arrow-down H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>
            </div>
            <div class="H-accordion-main H-padding-vertical-top-10 H-theme-background-color-white H-border-vertical-bottom-after H-display-none-important">
					<?
			$sql="select * from tbl_spp where baozjzt=1 AND userid='".$_COOKIE['userid']."' ORDER by id DESC limit 15 ";
			$_id ='&';
			$query=mysql_query($sql);
              if(!mysql_affected_rows()){
            echo '
			    <div class="H-padding-vertical-bottom-10"></div>
				</br>
    <div class="H-channel-title H-flexbox-horizontal H-theme-background-color-white H-vertical-middle H-border-vertical-bottom-after">
        <div class="H-channel-line H-theme-background-color8 H-padding-vertical-top-15 H-padding-horizontal-left-3  H-margin-horizontal-left-10"></div>
        <div class="H-channel-text H-theme-font-color8 H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1">暂无明细</div>
    </div>
	</br></br>
			';
}
       
			while($row=mysql_fetch_array($query))
			{
			?>
                      
      <div class="H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active">
        <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12"><?=$row['title']?></div>
        <span class="H-badge H-display-block H-margin-horizontal-right-5"><label class="H-display-inline-block H-vertical-middle H-theme-background-color5 H-theme-font-color-white H-font-size-12"><?=$row['baozj']?></label></span>
        <span class="H-icon H-padding-horizontal-right-5 H-display-block"><i class="H-iconfont H-icon-arrow-right H-theme-font-color-ccc H-font-size-14 H-vertical-middle"></i></span>
    </div>

			      <?php } ?> 		
        
				
				
            </div>
        </div>
		
		------------------------------------------------>

   <div class="H-text-align-center H-margin-vertical-top-10 H-margin-vertical-bottom-10 H-font-weight-500 H-font-size-18">充值/提现<span class="H-icon H-display-inline-block H-padding-horizontal-both-5"></span></div>
   
		<form action="?act=add" id="signupok" method="post" name="czform"  enctype="multipart/form-data" onSubmit="return beforeSubmit3(this);">
   <div class="H-flexbox-horizontal ">
            <span class="H-icon H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white">
			充值:
			</span>
			<input type="text" name="totalp" onkeyup="clearNoNum(this)" class="H-textbox H-vertical-align-middle H-vertical-middle H-font-size-11 H-flex-item H-box-sizing-border-box H-border-none H-outline-none H-padding-12" placeholder="请输入充值金额"><span class="H-vertical-middle H-padding-horizontal-right-10 H-theme-background-color-white H-theme-font-color1 H-font-size-12">
							  			<div class="layui-form-item" style="display:none" >
			    <label class="layui-form-label">shibiema</label>
			    <div class="layui-input-block">
			    	<input type="text"  value="<?php echo time().rand(10,99);?>" placeholder="输入充值金额" name="shibiema"  class="layui-input" style="width:500px">
			    </div>
			</div>
				  			<div class="layui-form-item" style="display:none">
			    <label class="layui-form-label">待添加</label>
			    <div class="layui-input-block">
			    	<input type="text"  value="0" placeholder="输入充值金额" name="title"  class="layui-input" style="width:500px">
			    </div>
			</div>
				  			<div class="layui-form-item" style="display:none">
			    <label class="layui-form-label">是否支付状态</label>
			    <div class="layui-input-block">
			    	<input type="text"  value="1" placeholder="输入充值金额" name="zfzt"  class="layui-input" style="width:500px">
			    </div>
			</div>			
							  			<div class="layui-form-item" style="display:none">
			    <label class="layui-form-label">待添加</label>
			    <div class="layui-input-block">
			    	<input type="text"  value="0" placeholder="0" name="shen"  class="layui-input" style="width:500px">
			    </div>
			</div>
			<button type="submit" class=" H-font-size-15 H-outline-none H-theme-background-color-transparent H-padding-horizontal-both-20 H-theme-font-color8 H-theme-border-color8 H-theme-border-color8-click H-theme-background-color8-click H-theme-font-color8-click H-border-radius-3 " style="height:30px;margin-right: 10px;">充值</button>
			</span>
        </div>
		</form>

	 <div class="H-padding-vertical-bottom-10"></div>
	 		 				<?php if($czzfzt==1){
               ?>
    <div class="H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active">
        <div class="H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12">       
        <span class="H-badge H-display-inline-block H-badge-null H-theme-background-color8 H-border-radius-circle"></span>
          ￥:<?=$czje?></div>
		
<button onclick="window.location.href='yuezf.php?fid=<?=$czzfid?>'" class=" H-font-size-15 H-outline-none H-theme-background-color-transparent H-padding-horizontal-both-20 H-theme-font-color8 H-theme-border-color8 H-theme-border-color8-click H-theme-background-color8-click H-theme-font-color8-click H-border-radius-3 " style="height:30px;margin-right: 5px;">去付款</button>
<button onclick="window.location.href='?act=repass&id=<?=$czzfid?>'" class=" H-font-size-15 H-outline-none H-theme-background-color-transparent H-padding-horizontal-both-20 H-theme-font-color8 H-theme-border-color8 H-theme-border-color8-click H-theme-background-color8-click H-theme-font-color8-click H-border-radius-3 " style="height:30px;margin-right: 20px;">删除</button>

		
    </div>


	  <?php } ?>
		   <div  class="H-text-align-center H-margin-vertical-top-10 H-margin-vertical-bottom-10 H-font-weight-500 H-font-size-16" style="color: red;">注意:请点击阅读下方提现规则<span class="H-icon H-display-inline-block H-padding-horizontal-both-5"> </span></br> <a href="txxieyi.php"  > 余额提现规则 </a> </div>
		  
            <div class="H-padding-vertical-bottom-10"></div>
			<form action="?act=tixian" id="signupok" method="post" name="adddform"  enctype="multipart/form-data" onSubmit="return beforeSubmit1(this);">
			
			 <div class="H-flexbox-horizontal ">
            <span class="H-icon H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white">
			真实姓名:
			</span><input name='txrxm' type="text" class="H-textbox H-vertical-align-middle H-vertical-middle H-font-size-11 H-flex-item H-box-sizing-border-box H-border-none H-outline-none H-padding-12" value="<?php echo $rowu['anums'];?>" placeholder="真实的支付宝姓名">

            <span class="H-vertical-middle H-padding-horizontal-right-10 H-theme-background-color-white H-theme-font-color1 H-font-size-12"></span>
           
        </div> 		
			
			
			 <div class="H-flexbox-horizontal ">
            <span class="H-icon H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white">
			支付宝账号:
			</span><input name='zfb' type="text" class="H-textbox H-vertical-align-middle H-vertical-middle H-font-size-11 H-flex-item H-box-sizing-border-box H-border-none H-outline-none H-padding-12" value="<?php echo $rowu['yueezfb'];?>" placeholder="输入提现支付宝账号"><span class="H-vertical-middle H-padding-horizontal-right-10 H-theme-background-color-white H-theme-font-color1 H-font-size-12"></span>
        </div>
		

		
 <div class="H-flexbox-horizontal ">
            <span class="H-icon H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white">
			金额:
			</span><input name='jine' type="text" class="H-textbox H-vertical-align-middle H-vertical-middle H-font-size-11 H-flex-item H-box-sizing-border-box H-border-none H-outline-none H-padding-12" placeholder="请输入提现金额">

            <span class="H-vertical-middle H-padding-horizontal-right-10 H-theme-background-color-white H-theme-font-color1 H-font-size-12"></span>
           
        </div> 
		
		  <input type="hidden" name="dqyuee" value="<?php echo $yuee;?>" /> 
		   <input type="hidden" name="mmma" value="<?php echo $rowu['userpwd'];?>" />  
         <div class="H-flexbox-horizontal ">
            <span class="H-icon H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white">
            密码:
            </span><input name='password' type="password" class="H-textbox H-vertical-align-middle H-vertical-middle H-font-size-11 H-flex-item H-box-sizing-border-box H-border-none H-outline-none H-padding-12" placeholder="输入登录众晒网的密码"><span class="H-vertical-middle H-padding-horizontal-right-10 H-theme-background-color-white H-theme-font-color1 H-font-size-12"><button class=" H-font-size-15 H-outline-none H-theme-background-color-transparent H-padding-horizontal-both-20 H-theme-background-color-white H-theme-font-color8 H-theme-border-color8 H-theme-border-color8-click H-theme-background-color8-click H-theme-font-color8-click H-border-radius-3 " style="height:30px;margin-right: 10px;">提现</button></span>        
            
        </div>

		</form>
      
	  <!-----------------------------------------------
	      <div class="H-text-align-center H-margin-vertical-top-10 H-margin-vertical-bottom-10 H-font-weight-500 H-font-size-18">返现提现<span class="H-icon H-display-inline-block H-padding-horizontal-both-5"></span></div>
	   
	    <div class="H-padding-vertical-bottom-10"></div>
			<form action="?act=ftixian" id="signupok" method="post" name="txform"  enctype="multipart/form-data" onSubmit="return beforeSubmit(this);">
			
				 <div class="H-flexbox-horizontal ">
            <span class="H-icon H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white">
			真实姓名:
			</span><input name='fxtxrxm' type="text" class="H-textbox H-vertical-align-middle H-vertical-middle H-font-size-11 H-flex-item H-box-sizing-border-box H-border-none H-outline-none H-padding-12" value="<?php echo $rowu['anums'];?>" placeholder="真实的支付宝姓名">

            <span class="H-vertical-middle H-padding-horizontal-right-10 H-theme-background-color-white H-theme-font-color1 H-font-size-12"></span>
           
        </div> 	
			
			 <div class="H-flexbox-horizontal ">
            <span class="H-icon H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white">
			支付宝账号:
			</span><input name='fxzfb' type="text" class="H-textbox H-vertical-align-middle H-vertical-middle H-font-size-11 H-flex-item H-box-sizing-border-box H-border-none H-outline-none H-padding-12" value="<?php echo $rowu['yueezfb'];?>" placeholder="输入提现支付宝账号"><span class="H-vertical-middle H-padding-horizontal-right-10 H-theme-background-color-white H-theme-font-color1 H-font-size-12"></span>
        </div>
		

		
 <div class="H-flexbox-horizontal ">
            <span class="H-icon H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white">
			金额:
			</span><input name='fxjine' type="text" class="H-textbox H-vertical-align-middle H-vertical-middle H-font-size-11 H-flex-item H-box-sizing-border-box H-border-none H-outline-none H-padding-12" placeholder="请输入提现金额">

            <span class="H-vertical-middle H-padding-horizontal-right-10 H-theme-background-color-white H-theme-font-color1 H-font-size-12"></span>
           
        </div> 
		
		  <input type="hidden" name="fxyuee" value="<?php echo $rowfx['fund'];?>" /> 
		   <input type="hidden" name="mmma" value="<?php echo $rowu['userpwd'];?>" />  
         <div class="H-flexbox-horizontal ">
            <span class="H-icon H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white">
            密码:
            </span><input name='password' type="password" class="H-textbox H-vertical-align-middle H-vertical-middle H-font-size-11 H-flex-item H-box-sizing-border-box H-border-none H-outline-none H-padding-12" placeholder="输入登录众晒网的密码"><span class="H-vertical-middle H-padding-horizontal-right-10 H-theme-background-color-white H-theme-font-color1 H-font-size-12"><button  class=" H-font-size-15 H-outline-none H-theme-background-color-transparent H-padding-horizontal-both-20 H-theme-background-color-white H-theme-font-color8 H-theme-border-color8 H-theme-border-color8-click H-theme-background-color8-click H-theme-font-color8-click H-border-radius-3 " style="height:30px;margin-right: 10px;">提现</button></span>        
            
        </div>

		</form>
		
---------------------------------------->		
        <br>
        <br>
        <br>
		
</div>
<?include('footer.php');?>



    <script type="text/javascript" src="/ui/script/H.js"></script>
	    <script type="text/javascript" src="/ui/layer/mobile/layer.js"></script>  
		    <script type="text/javascript" src="ui/gwc/js/jquery-1.8.3.min.js"></script>

	 <script type="text/javascript">
        H.on(H.Ds(".H-accordion-title"), "touchend", function (event) {
            var area = H.getParents(event.target, "H-accordion-area");
            var title = H.D(".H-accordion-title", area);
            var main = H.D(".H-accordion-main", area);
            var icon = H.D(".H-accordion-icon", area);
            if (H.isElement(main)) {
                if (H.hasClass(main, "H-display-none-important")) {

                    H.removeClass(icon, "H-icon-arrow-down");
                    H.addClass(icon, "H-icon-arrow-up");

                    H.removeClass(title, "H-theme-background-color-white");
                    H.addClass(title, "H-theme-background-color-f4f4f4");

                    H.removeClass(main, "H-display-none-important");
                }
                else {
                    H.removeClass(icon, "H-icon-arrow-up");
                    H.addClass(icon, "H-icon-arrow-down");

                    H.removeClass(title, "H-theme-background-color-f4f4f4");
                    H.addClass(title, "H-theme-background-color-white");

                    H.addClass(main, "H-display-none-important");
                }
            }
        });
    </script>



	<script type="text/javascript">
function beforeSubmit1(form){
    if (document.adddform.zfb.value==""){
   layer.open({
    content: '请输入支付宝账号！'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }
	   if (document.adddform.txrxm.value==""){
   layer.open({
    content: '请输入提现人姓名'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }
	
	   if (document.adddform.txrxm.value.length>4){
   layer.open({
    content: '请正确输入真实姓名'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }	
	
	
	
	    if (document.adddform.jine.value==""){
   layer.open({
    content: '请输入提现金额'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }
	    if (document.adddform.password.value==""){
   layer.open({
    content: '请输入密码'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }	
	    if (document.adddform.jine.value>document.adddform.dqyuee.value){
   layer.open({
    content: '超出当前可取现金额'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }	

	    if (document.adddform.password.value!=document.adddform.mmma.value){
   layer.open({
    content: '密码不正确'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }	
	
	    document.adddform.submit();
    return true;    
}
</script>
	<script type="text/javascript">
function beforeSubmit3(form){
    if (document.czform.totalp.value==""){
   layer.open({
    content: '请输入充值金额！'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }


	    document.czform.submit();
    return true;    
}
</script>

	<script type="text/javascript">
function beforeSubmit(form){
    if (document.txform.fxzfb.value==""){
   layer.open({
    content: '请输入支付宝账号！'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }
	   if (document.txform.fxtxrxm.value==""){
   layer.open({
    content: '请输入提现人真实姓名'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }

	   if (document.txform.fxtxrxm.value.length>4){
   layer.open({
    content: '请正确输入真实姓名'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }	
	
	    if (document.txform.fxjine.value==""){
   layer.open({
    content: '请输入提现金额'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }
	    if (document.txform.password.value==""){
   layer.open({
    content: '请输入密码'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }	
	    if (document.txform.fxjine.value>document.txform.fxyuee.value){
   layer.open({
    content: '超出当前可取现金额'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }	

	    if (document.txform.password.value!=document.txform.mmma.value){
   layer.open({
    content: '密码不正确'
    ,skin: 'msg'
    ,time: 2 //2秒后自动关闭
  }); 
        return false;
    }	
	
	    document.txform.submit();
    return true;    
}
</script>
</body>
</html>